import { defHttp } from '/@/utils/http/axios';

enum Api {
  List = '/sys/newsInfo/list',
  Save = '/sys/newsInfo/save',
  Del = '/sys/newsInfo',
}

// 分页查询
export const newsInfoList = (params) => defHttp.post({ url: Api.List, params });

// 保存
export const newsInfoSave = (params) => defHttp.post({ url: Api.Save, params });

// 删除
export const newsInfoDel = (params: { ids: String }) =>
  defHttp.delete<boolean>({ url: Api.Del + `/${params.ids}` });
